package com.micro.ai.template.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 模板审核记录实体
 *
 * @author micro-ai
 * @since 0.0.1
 */
@Data
@TableName("template_reviews")
@Schema(description = "模板审核记录实体")
public class TemplateReview {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private String id;

    @TableField("template_id")
    @Schema(description = "模板ID")
    private String templateId;

    @TableField("tenant_id")
    @Schema(description = "所属租户ID")
    private String tenantId;

    @TableField("reviewer_id")
    @Schema(description = "审核人用户ID")
    private String reviewerId;

    @TableField("status")
    @Schema(description = "审核状态", allowableValues = {"PENDING", "APPROVED", "REJECTED"})
    private String status;

    @TableField("comment")
    @Schema(description = "审核意见")
    private String comment;

    @TableField("reviewed_at")
    @Schema(description = "审核时间")
    private LocalDateTime reviewedAt;
}

